<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>
<body>


<script>
    new Vue({
        el:"#app",
        data(){
            return{
                username:"",
                url:"https://www.baidu.com",
                count:3,
                addrs:["北京","上海","广州"]
            }
        },
        methods:{
            show(){
                alert("不要点我");
            }
        },
        /*原始写法：
        mounted:function () {
        }*/
        mounted(){
            alert("加载完成");
        }
    })
</script>
</body>
</html>